package com.example.linuxchat.utiltool;

import android.content.Context;
import android.view.Gravity;
import android.widget.Toast;

/**
 * @author liulingjie
 * @date 20-6-7 下午4:41
 */
public class MyToast {

    public static Toast makeText(Context context,String hint){
        Toast toast=Toast.makeText(context,hint,Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.CENTER,0,0);
        return toast;
    }
}
